<?php

  $conn = @mysqli_connect('localhost','admin','123456');

  if (!$conn) {
    echo '错误码：' . mysqli_connect_errno() . '<br>';
    echo '错误信息：' . mysqli_connect_error();
    exit;
  }

  $select = mysqli_select_db($conn,'xiaopi');

  if (!$select) {
    echo '选择数据库失败';
    exit;
  }

  mysqli_set_charset($conn,'utf8');

  $pre_ = 'pre_';
  include 'function.php';

  session_start();

  // include 'imgcode.php';
  